package com.jgraves.WikiToSpeech;

/** A file with name and size
 * @author johngraves
 *
 */
public class HistoryOption implements Comparable<HistoryOption>{
	
	private String name;

	public HistoryOption(String n)
	{
		name = n;
	}
	
	public String getName()
	{
		return name;
	}
	
	public int compareTo(HistoryOption o) {
		if(this.name != null)
//			return this.size.compareTo(o.getSize()); 
			return this.name.toLowerCase().compareTo(o.getName().toLowerCase()); 
		else 
			throw new IllegalArgumentException();
	}
}

